<template>
    <div id="Ciframe">
        
        <iframe :src="iframeSrc" frameborder="0" width="100%" height="100%"></iframe>
    </div>
</template>
<script>
export default {
    name:"Ciframe",
    data() {
        return {
            type:"",
            iframeSrc:"",
        }
    },
    mounted() {
        this.type = this.$route.query.type;
        if(this.type=="smartDevice"){ // 设备监控
            this.iframeSrc = "./static/html/smartDeviceEMS/index.html";
        }else{
            this.iframeSrc = "./static/html/"+this.type+"/index.html";
        }
    },
    watch: {
        type(){

        }
    },
}
</script>
<style lang="scss" scoped>

    #Ciframe{
        width: 100%;
        height: 100%;
        background: #ffffff;
    }
</style>